package com.y.architecture.login;

import android.widget.Button;
import android.widget.EditText;

import com.y.architecture.base.IBaseContact;
import com.y.architecture.bean.User;

/**
 * Created by youjingjing on 2017/12/21.
 */

public class ILoginContact {
    public interface ILoginView<T> extends IBaseContact.IBaseView{
        User getUser();

        void showLoginSuccess();//显示登录成功

        void errorWarning(EditText view,String msg);//显示登录失败

        void showLogging();//显示在登录中

        void showNetWorkError(); //显示网络错误

        void rememberKey();//记住密码

        void autoLogin();//自动登录

        void setStatus(boolean boo);//登录状态

        String getInputText(EditText text);
    }
    public interface ILoginPresent<T> extends IBaseContact.IPresenter{

        boolean validateInfo(EditText view);

        EditText getEditName();
        EditText getEditKey();
        EditText getEditPort();
        EditText getEditHost();

        Button getButton();
        boolean isNumValid(String port);

        boolean isAccountValid(String account);

        boolean isPasswordValid(String password);
    }
}
